#include<iostream>
#include<vector>

using namespace std;

void decToBin(int i) {
  if (i == 0) {
    return;
  }
  decToBin(i / 2);
  cout<<i % 2;
}


int main(int argc, char const *argv[]) {

  decToBin(574);
  cout << endl;

  vector<int> array {1, 3, 5, 7, 9};
  vector<int> newArray;

  newArray.insert(
    newArray.end(), 
    array.begin(), 
    array.begin() + 2);


  newArray.insert(
    newArray.end(), 
    array.end() - 2, 
    array.end());

  for (int i : newArray) {
    cout << i << " ";
  }
  cout << endl;
  
  return 0;
}
